<%@ include file="/en/jsp/static.jsp" %>
<jsp:include page="/en/jsp/header.jsp" flush="true"/>
<SCRIPT LANGUAGE="Javascript">
function checkFields() {
    with (document.confirm) {
      if (DEPT_NAME.value == null || DEPT_NAME.value == "") {
        alert("The department name is missing.");
        return false;
      } else if (ADDRESS.value == null || ADDRESS.value == "") {
        alert("The address is missing.");
        return false;
      } else if (PHONE.value == null || PHONE.value == "") {
        alert("The phone is missing.");
        return false;
      } else if (EMAIL.value == null || EMAIL.value == "") {
        alert("The e-mail is missing.");
        return false;
      }
    }
  return true;
}

function saveChanges() {
  if (checkFields()) {
      document.confirm.action = "<%=BoxStatic.servletDir%>DeptManAddAction";
      document.confirm.submit();
  }
}
</SCRIPT>

<table width="100%" height=26 align=middle border=0 cellpadding=0 cellspacing=0 bgcolor="#f4f4f4" style="font-size:16px;color:#d05000">
<tr><td>
    &nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width=14 height=15 border=0 align="absmiddle">
    <b><%=boxName%> - Department Management</b>
</td></tr>
</table>
<br>

<FORM METHOD="POST" NAME="confirm">
<DIV>
<TABLE ALIGN="center" BGCOLOR="#336633" BORDER="0" CELLPADDING="1" CELLSPACING="0" WIDTH="98%">
  <TR><TD class="bg_darkgreen">
  <TABLE ALIGN="center" BGCOLOR="#336633" BORDER="0" CELLPADDING="0" CELLSPACING="5" WIDTH="100%">
  <TR><TD class="bg_darkgreen">
    <p class="white"><b>&nbsp;Add Department Profile</b></p>
  </TD></TR>
  </TABLE>

    <TABLE ALIGN="center" BGCOLOR="#f6f6f6" BORDER="0" CELLPADDING="5" CELLSPACING="0" WIDTH="100%" HEIGHT="100%">
  <TR><TD class="bg_lightgray" colspan="2"><br>
    <p class="red">&nbsp;&nbsp; <i>Note: Required fields are indicated with an Asterisk (*).</i></p>
  </TD></TR>
    <TR>
      <TD ALIGN="left" VALIGN="top" WIDTH="30%" class="bg_lightgray">
      <DIV class="red"><B>Department Name *</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" WIDTH="70%" class="bg_lightgray">
      <DIV><INPUT TYPE="text" SIZE="32" NAME="DEPT_NAME" MAXLENGTH="32"></DIV>
      </TD>
    </TR>

    <TR>
      <TD ALIGN="left" VALIGN="top" WIDTH="30%" class="bg_lightgray">
      <DIV class="red"><B>Address *</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" WIDTH="70%" class="bg_lightgray">
      <DIV><INPUT TYPE="text" SIZE="64" NAME="ADDRESS" MAXLENGTH="64"></DIV>
      </TD>
    </TR>
    <TR>
      <TD ALIGN="left" VALIGN="top" WIDTH="30%" class="bg_lightgray">
      <DIV class="red"><B>Phone *</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" WIDTH="70%" class="bg_lightgray">
      <DIV><INPUT TYPE="text" SIZE="32" NAME="PHONE" MAXLENGTH="32"></DIV>
      </TD>
    </TR>
    <TR>
      <TD ALIGN="left" VALIGN="top" WIDTH="30%" class="bg_lightgray">
      <DIV class="red"><B>E-Mail *</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" WIDTH="70%" class="bg_lightgray">
      <DIV><INPUT TYPE="text" SIZE="32" NAME="EMAIL" MAXLENGTH="32"></DIV>
      </TD>
    </TR>
    <TR>
      <TD ALIGN="left" VALIGN="top" class="bg_lightgray">
      <DIV><B>Note</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" class="bg_lightgray">
      <DIV><INPUT TYPE="text" SIZE="64" NAME="NOTE" MAXLENGTH="128"></DIV>
      </TD>
    </TR>
    <TR>
      <TD ALIGN="center" COLSPAN="2" VALIGN="top" class="bg_lightgray">
        <TABLE ALIGN="center" BORDER="0" CELLPADDING="2" CELLSPACING="0" WIDTH="100%">
        <TR><TD ALIGN="left" COLSPAN="2" VALIGN="top">
          <B>User Attributes</B>
          <HR ALIGN="center" SIZE="1" WIDTH="100%">
        </TD></TR>
        <TR><TD ALIGN="left" VALIGN="top" WIDTH="50%">
            <INPUT TYPE="checkbox" NAME="DISABLE" value="CHECKED"> Disable<BR>
        </TD></TR>
    </TABLE>
      </TD>
    </TR>
    <TR><TD class="bg_lightgray" colspan="2">
    <HR NOSHADE size="1">
     <DIV>
      <A HREF="javascript: saveChanges()"><IMG src="<%=BoxStatic.imageDir%>hbeam_btn_save.gif" width="110" height="20" border="0" alt="Save Changes"></A><!--
      --><A HREF="<%=BoxStatic.jspDir%>admin/UserManager.jsp"><IMG SRC="<%=BoxStatic.imageDir%>hbeam_btn_cancel.gif" width="110" height="20" border="0" alt="Cancel"></A><BR>
     </DIV>
     </TD></TR>
  </TABLE>
</TD></TR>
</TABLE>
</DIV>
</FORM>
<jsp:include page="/en/jsp/footer.jsp" flush="true"/>
